using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using B4ALL.Common;
using B4ALL.Cache.Singleton;

namespace AOPCaching.Example
{

    [Serializable()]
    public enum MerchantProductQuantityMode
    {
        Multiple = 0,
        Stock = 1
    }

    [Serializable()]
    [CacheSingleton()]
    public class MerchantProductDTO
    {
        #region Members

        private Int32 m_merchant_product_id;
        private Int32 m_products_id;
        private String m_merchant_product_model;

        #endregion Members

        #region properties

        [CacheSingletonIdentifier(AbstractName = "MerchantProductId")]
        public Int32 MerchantProductId
        {
            get { return m_merchant_product_id; }
            set { m_merchant_product_id = value; }
        }

        [CacheSingletonIdentifier(AbstractName = "ProductId", Type = CacheSingletonIdentifierType.Other)]
        public Int32 ProductsId
        {
            get { return m_products_id; }
            set { m_products_id = value; }
        }

        public String MerchantProductModel
        {
            get { return m_merchant_product_model; }
            set { m_merchant_product_model = value; }
        }       

        #endregion properties
    }

    [Serializable()]
    public class MerchantProductsDTOList : List<MerchantProductDTO>
    { }
}
